package main

import (
	"time"

	//"os/exec"
	//"time"

	"github.com/garyburd/redigo/redis"
)

var Pool *redis.Pool

func Redispool() {
	RedisHost := "10.0.0.42:6389"
	option := redis.DialPassword("ghd")
	Pool = &redis.Pool{
		MaxIdle:     10,
		IdleTimeout: 240 * time.Second,
		Dial: func() (redis.Conn, error) {
			return redis.Dial("tcp", RedisHost, option)
		},
	}
}
